
//玩家类
export interface playerType  {
    id: number,
    hp: number,
    name: string,
    money: number,
    attack: number, //攻击的金钱数量
    attackArr: number[],
}
export enum battleType {
    //战斗状态
    "ready" = 1,
    "battle",
    "over"
}
//房间信息
export interface roomInfo  {
    time: number,
    state: battleType,
    players: playerType[],
    winner: number,
}
//战斗模式时间
export const battleTime = [
    20,
    300,
    10,
]
export interface GameData {
    [key: string]: any;
}

//发送的消息类型
export interface sendInfoType {
    money: number, //攻击的金钱数量
    playerId: number, //发送的id
}